<?php
/**
 * 湖南电视台
 */
//require_once 'Observer.php';
class HebeiObserver extends Observer{
    private $temperature;

    public function update(SubjectInterface $subject)
    {
        $this->temperature = $subject->getTemperature();
        $this->display();
    }

    public function getDisplay()
    {
        return ['temperature'=> $this->temperature, 'data'=>['msg'=>'哈哈','gg'=>['aa'=>'aa呀']]];
    }

}